<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>resource</title>
    <script type="text/javascript" src="../assets/js/vue-2.3.0.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue-resource@1.5.1"></script>
</head>
<body>
    <div id="app"></div>
</body>
<script>
 
    var app = new Vue({
        el: "#app",
        data: {
            show: true,
            apiUrl:'http://app.taocaimall.com/taocaimall/hello.json',
            stocklist: []
        },
        created: function () {
            this.$http.jsonp(this.apiUrl).then((response)=>{
                return response.body
            }).then((res)=>{
                console.log(res);
            }).catch(()=>{
                console.log('err');
            })
        }

    })
</script>

</html>